/**
 * Created by wangdunwen on 2017/7/14.
 */

require([
    'common/ResetMap',
    'layer/LayerManager',
    'vector/VectorManager',
    'plot/PlotManager',
    'measure/MeasureManager',
    'Init'
], function (
    ResetMap,
    LayerManager,
    VectorManager,
    PlotManager,
    MeasureManager
) {
    new ResetMap()
    new LayerManager(viewer)
    new VectorManager()
    new PlotManager()
    new MeasureManager()

    viewer.animation.container.style.display = "none"
    viewer.timeline.container.style.display = "none"
    viewer.infoBox._container.style.display = "none"
    window.getPosition = function (event) {
        var windowPosition
        var pos = event.position || window.event
        windowPosition = new Cesium.Cartesian2(pos.x, pos.y)
        return windowPosition
    }
})